Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update black precommit #22521

Merged
merged 1 commit into from
Mar 25, 2022
Merged

Update black precommit #22521

merged 1 commit into from
Mar 25, 2022

Conversation

jedcunningham
Copy link
Member

Use latest version of black (first "non-beta" release 🎉), drop py36, and add py310.

@@ -113,7 +113,7 @@ def my_after_func(retry_state):
else:
self.retry_args = dict(
stop=stop_after_attempt(self.retry_limit),
wait=wait_exponential(min=self.retry_delay, max=(2 ** retry_limit)),
wait=wait_exponential(min=self.retry_delay, max=(2**retry_limit)),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm that’s an interesting change of style.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In psf/black#538 (where the change was made), it mentions that PEP 8 advises to only use whitespace to help make operator precedence more clear (** has a high precedence), and to not use it otherwise.

@github-actions
Copy link

The PR most likely needs to run full matrix of tests because it modifies parts of the core of Airflow. However, committers might decide to merge it quickly and take the risk. If they don't merge it quickly - please rebase it to the latest main at your convenience, or amend the last commit of the PR, and push it with --force-with-lease.

@github-actions github-actions bot added the full tests needed We need to run full set of tests for this PR to merge label Mar 25, 2022
Use latest version of black, drop py36, and add py310.
@jedcunningham jedcunningham reopened this Mar 25, 2022
@jedcunningham jedcunningham merged commit c063fc6 into apache:main Mar 25, 2022
@jedcunningham jedcunningham deleted the black branch March 25, 2022 17:35
@ephraimbuddy ephraimbuddy added the type:misc/internal Changelog: Misc changes that should appear in change log label Apr 11, 2022
@ephraimbuddy ephraimbuddy added changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) and removed type:misc/internal Changelog: Misc changes that should appear in change log labels Apr 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:dev-tools area:logging area:providers changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) full tests needed We need to run full set of tests for this PR to merge provider:google Google (including GCP) related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants